<#assign path="${springMacroRequestContext.getContextPath()}">
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>课程信息管理系统</title>
    <meta name="keywords"   />
    <meta name="description"  />
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
    <link rel="icon" href="${path}/static/images/icon/favicon.ico" type="image/x-icon">
    <link rel="stylesheet" type="text/css" href="${path}/static/css/style.css" />
    <script src="${path}/static/javascript/jquery.js"></script>
    <script src="${path}/static/javascript/plug-ins/customScrollbar.min.js"></script>
    <script src="${path}/static/javascript/plug-ins/echarts.min.js"></script>
    <script src="${path}/static/javascript/plug-ins/layerUi/layer.js"></script>
    <script src="${path}/static/editor/ueditor.config.js"></script>
    <script src="${path}/static/editor/ueditor.all.js"></script>
    <script src="${path}/static/javascript/plug-ins/pagination.js"></script>
    <script src="${path}/static/javascript/public.js"></script>
    <script src="${path}/static/javascript/menu.js"></script>
</head>
<base href="<%=basePath%>">
<style type="text/css">
    .kd {
        padding-left: 5px
    }

    .inputcs {
        width: 400px
    }

    .btncs {

    }
</style>
<script type="text/javascript">

    function quit(){
        if(confirm("你确定要退出登陆吗？")){
            window.location.href = "${path}/static/User/quit";
        }
    }
</script>
<body>
<div class="main-wrap">
    <div class="side-nav">
        <div class="side-logo">
            <div class="logo">
                <input type="hidden" id="power222" name="power" value="${Session["power"]}" >
                <span class="logo-ico">
					<i class="i-l-1"></i>
					<i class="i-l-2"></i>
					<i class="i-l-3"></i>
				</span>
                <strong>课程信息管理系统</strong>
            </div>
        </div>

        <nav id="nav" class="side-menu content mCustomScrollbar" data-mcs-theme="minimal-dark">
            <h2>
                <a href="${path}/User/Main" class="InitialPage"><i class="icon-dashboard"></i>首页</a>
            </h2>
            <ul>
                <li>
                    <dl>
                        <dt id="1100">
                            <i class="icon-columns"></i>基础信息管理<i class="icon-angle-right"></i>
                        </dt>
                        <dd id="1101">
                            <a href="${path}/User/teacher">教师信息管理</a>
                        </dd>
                        <dd id="1102">
                            <a href="${path}/User/student">学生信息管理</a>
                        </dd>
                        <dd id="1103">
                            <a href="${path}/Course/queryAll">课程信息管理</a>
                        </dd>
                    </dl>
                </li>
                <li >
                    <dl>
                        <dt id="1200">
                            <i class="icon-list-alt"></i>公告管理<i class="icon-angle-right"></i>
                        </dt>
                        <dd id="1201">
                            <a href="${path}/Notice/add">发布公告</a>
                        </dd>
                        <dd id="1202">
                            <a href="${path}/Notice/modify">公告修改</a>
                        </dd>
                        <dd id="1203">
                            <a href="${path}/Notice/delete">公告删除</a>
                        </dd>
                    </dl>
                </li>
                <li class="open">
                    <dl>
                        <dt id="1300">
                            <i  class="icon-table"></i>课程管理<i class="icon-angle-right"></i>
                        </dt>
                        <dd id="1301">
                            <a href="${path}/Course/teacher">教师排课</a>
                        </dd>
                        <dd id="1302">
                            <a href="${path}/Course/student">学生选课</a>
                        </dd>
                        <dd id="1303">
                            <a href="${path}/Course/view">课表查看</a>
                        </dd>
                        <dd id="1304">
                            <a href="${path}/Course/suggeetion">学生反馈</a>
                        </dd>
                    </dl>
                </li>
                <li>
                    <dl>
                        <dt id="1400">
                            <i class="icon-bar-chart"></i>成绩信息<i class="icon-angle-right"></i>
                        </dt>
                        <dd id="1401">
                            <a href="${path}/Course/upload">上传成绩</a>
                        </dd>
                        <dd id="1402">
                            <a href="${path}/Course/queryCourse">成绩查询</a>
                        </dd>
                    </dl>
                </li>
                <li>
                    <dl>
                        <dt id="1500">
                            <i class="icon-external-link"></i>系统设置<i class="icon-angle-right"></i>
                        </dt>
                        <dd id="1501">
                            <a href="${path}/Role/queryAll">角色管理</a>
                        </dd>
                        <dd id="1502">
                            <a href="${path}/User/changePa">修改密码</a>
                        </dd>
                    </dl>
                </li>
            </ul>
        </nav>
        <footer class="side-footer">© DeathGhost 版权所有</footer>
    </div>
    <div class="content-wrap">
        <header class="top-hd">
            <div class="hd-lt">
                <a class="icon-reorder"></a>
            </div>
            <div class="hd-rt">
                <ul>
                    <li>
                        <a><i class="icon-user"></i>系统时间:<em>${Session["time"]}</em></a>
                    </li>
                    <li>
                        <a><i class="icon-user"></i>${Session["roleName"]}:<em>${Session["user"].name}</em></a>
                    </li>
                    <li>
                        <a onclick="quit();" ><i class="icon-signout"></i>安全退出</a>
                    </li>
                </ul>
            </div>
        </header>
        <main class="main-cont content mCustomScrollbar">
            <!--开始::内容-->
            <div class="page-wrap">
                <section class="page-hd">
                    <header>
                        <h2 class="title"><i class="icon-home"></i>学生选课</h2>
                    </header>
                    <hr>
                </section>
                <blockquote class="blockquote mb-20" style="margin-left: 20px">
                    <h2 style="text-align: center;font-size: 25px;"><strong>学生选课</strong></h2>
                </blockquote>
                <form action="${path}/Course/update2" method="post">
                    <div class="form-group-col-2 ">
                        <div class="form-label">课程名称：</div>
                        <div class="form-cont">
                            <select class="inputcs"  id="coursename" name="id">
                                <option value="">请选择</option>
                                <#if list?exists>
                                    <#list list as course>
                                        <option value="${course["id"]}">${course["coursename"]}</option>
                                    </#list>
                                </#if>
                            </select>
                        </div>
                    </div>
                    <div class="form-group-col-2">
                        <div class="form-label">上课时间：</div>
                        <div class="form-cont">
                            <select class="inputcs"  id="coursedate" disabled name="coursedate">
                                <option value="">请选择</option>
                                <option value="星期一">星期一</option>
                                <option value="星期二">星期二</option>
                                <option value="星期三">星期三</option>
                                <option value="星期四">星期四</option>
                                <option value="星期五">星期五</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group-col-2">
                        <div class="form-label">上课教室：</div>
                        <div class="form-cont">
                            <select class="inputcs"  id="courseroom" disabled name="courseroom">
                                <option value="">请选择</option>
                                <option value="A教室">A教室</option>
                                <option value="B教室">B教室</option>
                                <option value="C教室">C教室</option>
                                <option value="D教室">D教室</option>
                                <option value="E教室">E教室</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group-col-2">
                        <div class="form-label"></div>
                        <div class="form-cont">
                            <input type="submit" class="btn btn-primary"  value="提交" />
                            <input type="reset" class="btn" value="重置" />
                        </div>
                    </div>
                </form>
            </div>
        </main>
        <footer class="btm-ft">
            <p class="clear">
                <span class="fl">©Copyright 2016</span>
                <span class="fr text-info">
					<em class="uppercase">
						<i class="icon-user"></i>
						management system
					</em>
				</span>
            </p>
        </footer>
    </div>
</div>
<script type="text/javascript">

    $("#coursename").change(function(){
        var id = $("#coursename").val();
        $.ajax({
            type : 'POST',
            url : "${path}/Course/queryOne",
            dataType : 'json',
            cache : false,
            async : false,
            data : {
                ID : id
            },
            success : function(data) {
                $("#coursedate").val(data.coursedate);
                $("#courseroom").val(data.courseroom);
            },
            error : function() {
                window.location.reload();
            }
        });



    });



    function Ncheckb(th){


    }

    function Ncheckc(th){


    }
</script>
</body>
</html>
